package task;

/**
 *
 * @author Thorsten Ludwig
 */
public class ExerciseSheetManagedBean {
    
    private ExerciseSheet sheet;
    private boolean visible;
    
    public ExerciseSheetManagedBean(ExerciseSheet sheet) {
        this.sheet = sheet;
    }

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public ExerciseSheet getSheet() {
        return sheet;
    }
    
    public String toggle() {
        this.visible = !this.visible;
        return "";
    }
    
    
}
